home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Re Linking error with CW8.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Linking error with CW8
  2. Sent:        4/2/96 4:12 AM
  3. Received:    4/2/96 7:01 AM
  4. From:        Per Henrik Johansen, Per.Henrik.Johansen@ifi.unit.no
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. When I included ExceptionPPC.cp to ODFRuntime I got the below error:
  9.  
  10. Link Error   : multiply-defined ‘__throw’ (descriptor)
  11. Defined in ExceptionPPC.cp
  12. Defined in ODFRuntime.lib
  13. Link Error   : multiply-defined ‘__throw’ (code)
  14. Defined in ExceptionPPC.cp
  15. Defined in ODFRuntime.lib
  16.  
  17. So I tried to check around a bit and found out that the function
  18. __unregister_fragment(fragmentID) is called from the function
  19. --terminate that is found in Startup.c. the same goes for
  20. __register_fragment that is called from __start in startup.c.
  21. Neither __unregister_fragment nor __register_fragment is declared in
  22. either Startup.c or ExceptionPPC.cp. Where are these functions?
  23.  
  24.  
  25. > Those are all in the CW8 runtime (ExceptionPPC.cp and Startup.c).
  26. > Double-check the file list for ODFRuntime.
  27. > At 6:28 AM 4/1/96, Per Henrik Johansen wrote:
  28. > >When I try to compile the example files with CW8 (eq ODFButton) I get
  29. > >the following linker errors:
  30. > >
  31. > >Link Error   : undefined '__unregister_fragment' (code)
  32. > >Referenced from '__terminate' in ODFRuntime.lib
  33. > >Link Error   : undefined '__register_fragment' (code)
  34. > >Referenced from '__initialize' in ODFRuntime.lib
  35. > >
  36. > >I have followed the guide "Building ODF with CW8" and can't quite seem
  37. > >to know how to fix this. Does anyone have any ideas (have I missed something
  38. > >or what)?
  39. > --
  40. > Mark Lanett <mlanett@meer.net>
  41. > Have a bajillion brilliant Jobsian lithium licks
  42.  
  43.  
  44. -- 
  45. Per Henrik Johansen
  46. perhj@ifi.unit.no
  47.